/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import facade.ConectionFactory;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;

public class CreateConectionJDBC implements ConectionFactory {

    public Connection create() throws SQLException {
        Connection conn = null;
        Properties connectionProps = new Properties();
        connectionProps.put("user", "root");
        connectionProps.put("password", "1234");

        conn = DriverManager.getConnection(
                "jdbc:" + "localhost" + ":"
                + "AppServiceDB"
                + ";create=true",
                connectionProps);
        return conn;
    }
}
